#!/usr/bin/env node

const log = console.log;
log('CPU architecture:',process.arch);
log('OS:',process.platform);
log('\npid',process.pid);

const stdin = process.stdin;
stdin.on('data',(data)=>{
    log('this is data:',data.toString());
});
stdin.on('end',()=>{
    log('byebye');
});

log('\nnodejs version',process.version);
log('login username',process.getuid());
log('user group',process.getgid()); 
log('pwd',process.cwd());

log('\nenv:',process.env);
